<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.10/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!--
              {{}}不能作为属性值来运用,只能在标签内部使用
            属性要使用v-bind来实现,就相当于在插值表达式中填值,
            :为v-bind的简写方式
         -->
        <!-- 完整写法: -->
        <img v-bind:src="imgSrc" v-bind:width="imgWidth"/>
        <!-- 简写 -->
        <img :src="imgSrc" :width="imgWidth"/>
    </div>
    <script>
        const vm = new Vue({
            el:"#app",
            data:{
                imgSrc:"https://v2.cn.vuejs.org/images/logo.svg",
                imgWidth:"50",
            }
        })
    </script>
</body>
</html>